/*
Copyright (C) 2022-2024 Inspur Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package wsreg

import (
	"did-service/controller"

	"github.com/emicklei/go-restful"
)

func RegisterCPTWebService(ws *restful.WebService, controller *controller.DidController) {
	ws.Route(ws.POST("/v1/cpt/operation").To(controller.OperationCpt)).
		Route(ws.POST("/v1/cpt/create").To(controller.CreateCpt)).
		Route(ws.PUT("/v1/cpt/{cptId}").To(controller.UpdateCpt)).
		Route(ws.GET("/v1/cpt/{cptId}").To(controller.GetCpt)).
		Route(ws.GET("/v1/cpt/page").To(controller.ListCptPage)).
		Route(ws.GET("/v1/cpt/enum").To(controller.GetCptEnum)).
		Route(ws.GET("/v1/cpt/property").To(controller.ListCptProperty)).
		Route(ws.POST("/v1/cpt/audit").To(controller.EditStatus))

}
